import Vue from "vue";
import VueI18n from "vue-i18n";
Vue.use(VueI18n);
import enLocale from "./en";
import zhLocale from "./cn";
import koLocale from "./ko";
import jaLocale from "./ja";
const i18n = new VueI18n({
	locale: uni.getStorageSync('lang') || "CN", // set locale，默认中文
	silentTranslationWarn: true, //  去掉一些不必要的警告
	messages: {
		EN: enLocale,
		CN: zhLocale,
		KO: koLocale,
		JA: jaLocale
	},
});
export default i18n;